package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.QuestionInviteCodeCheckTask.QuestionInviteCodeCheckRequest;
import com.smiier.skin.net.QuestionInviteCodeCheckTask.QuestionInviteCodeCheckResponse;
import com.smiier.skin.util.GlobalSettings;

/**
 * 检查邀请码是否正确
 * 
 * @author 杨文华
 * 
 */
public class QuestionInviteCodeCheckTask
		extends
		NetTask<QuestionInviteCodeCheckRequest, QuestionInviteCodeCheckResponse> {

	public static class QuestionInviteCodeCheckRequest extends ORequest {
		public String Invite_Code;
		public long Doctor_Uid;
		public String appname = Constant.APP_NAME;
	}

	public static class QuestionInviteCodeCheckResponse extends OResponse {
		public int Res = GlobalSettings.IS_FALSE;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Question.InviteCode.Check";
		mRequestMethod = METHOD_GET;
	}
}
